From 99ee7bd1ea3eeade23e0af339f4e8439e1d22b8b Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 14 Sep 2004 14:29:59 +0000 Subject: [PATCH] Remove warning during device discovery as increasing number of garmins do this... --- jeeps/gpsapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jeeps/gpsapp.c b/jeeps/gpsapp.c index 9322b082a..8fcd7df78 100644 --- a/jeeps/gpsapp.c +++ b/jeeps/gpsapp.c @@ -215,17 +215,17 @@ static int32 GPS_A000(const char *port) else { int maxct = 3; + /* + * The unit may return more than one packet, so read and + * discard all but the product inquiry response. + */ while (maxct--) { - char pb[256]; (void) GPS_Packet_Read(fd, &rec); GPS_Send_Ack(fd, &tra, &rec); if (rec->type == 0xfd) { GPS_A001(rec); break; } - snprintf(pb, sizeof(pb), "Ignoring unknown packet 0x%x.", - rec->type); - GPS_Warning(pb); } } -- 2.30.2